package zhanglu.family.socket.bean.busbean;

import zhanglu.family.socket.bean.ErrMsg;

/**
 * 总线消息体，用于处理接受到的消息用,适用于文本json的传输
 * 
 * @author zhanglu
 * @date 2017年3月10日
 */
public class BusMsgBean {
    private BusHeadBean head   = new BusHeadBean(); // 头信息体
    private String   jsonMsg;                // 消息体,json字符串
    private ErrMsg   errMsg = ErrMsg.NONE;   // 信息回码

    public BusHeadBean getHead() {
        return head;
    }

    public void setHead(BusHeadBean head) {
        this.head = head;
    }

    public String getJsonMsg() {
        return jsonMsg;
    }

    public void setJsonMsg(String jsonMsg) {
        this.jsonMsg = jsonMsg;
    }

    public ErrMsg getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(ErrMsg errMsg) {
        this.errMsg = errMsg;
    }

}
